package com.yanqu.road.entity.monopolymarket.office.log;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Description 榷场 资源点日志信息
 * @Author cwq
 * @Data 2021/4/15 18:49
 */
@FieldTypeAnnotation(tableName = "t_c_monopolymarket_res_grab_rob_log_data")
public class MonopolyMarketResGrabRobLogData extends DataObject {
    @FieldTypeAnnotation(select = true ,desc = "分组id")
    private long groupId;
    @FieldTypeAnnotation(desc = "占领的位置id")
    private int posIndex;
    @FieldTypeAnnotation(desc = "地图边长,计算坐标用")
    private int side;
    @FieldTypeAnnotation(desc = "位置等级")
    private int level;
    @FieldTypeAnnotation(desc = "类型 2王宫 3王帐")
    private int type;
    @FieldTypeAnnotation(desc = "剩余采集时间")
    private int remainTime;
    @FieldTypeAnnotation(select = true,desc = "位置上的玩家")
    private long userId;
    @FieldTypeAnnotation(desc = "位置上对象派遣的对象")
    private String objectStr = "";
    @FieldTypeAnnotation(desc = "战斗力总值")
    private long value;

    @FieldTypeAnnotation(desc = "被抢夺的结算收益 （被抢夺成功才有值）")
    private int rewardNum;

    @FieldTypeAnnotation(desc = "是否被抢夺")
    private boolean isWin;

    @FieldTypeAnnotation(desc = "抢夺者id")
    private long robId;
    @FieldTypeAnnotation(desc = "抢夺者派遣的对象")
    private String robObjectStr = "";
    @FieldTypeAnnotation(desc = "抢夺者战斗力总值")
    private long robValue;

    @FieldTypeAnnotation(desc = "已占资源点")
    private String occupyStr = "";
    @FieldTypeAnnotation(desc = "入座收益")
    private int sitReward;
    @FieldTypeAnnotation(desc = "时间")
    private int logTime;

    public long getGroupId() {
        return groupId;
    }
    public void setGroupId(long groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public int getPosIndex() {
        return posIndex;
    }
    public void setPosIndex(int posIndex) {
        if (this.posIndex != posIndex) {
            this.posIndex = posIndex;
            setOp(DataStatus.Update);
        }
    }

    public int getSide() {
        return side;
    }

    public void setSide(int side) {
        if (this.side != side) {
            this.side = side;
            setOp(DataStatus.Update);
        }
    }

    public int getLevel() {
        return level;
    }
    public void setLevel(int level) {
        if (this.level != level) {
            this.level = level;
            setOp(DataStatus.Update);
        }
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        if (this.type != type) {
            this.type = type;
            setOp(DataStatus.Update);
        }
    }

    public int getRemainTime() {
        return remainTime;
    }
    public void setRemainTime(int remainTime) {
        if (this.remainTime != remainTime) {
            this.remainTime = remainTime;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public String getObjectStr() {
        return objectStr;
    }
    public void setObjectStr(String objectStr) {
        if (objectStr == null){
            return;
        }
        if (this.objectStr == null || !this.objectStr.equals(objectStr)) {
            this.objectStr = objectStr;
            setOp(DataStatus.Update);
        }
    }

    public long getValue() {
        return value;
    }
    public void setValue(long value) {
        if (this.value != value) {
            this.value = value;
            setOp(DataStatus.Update);
        }
    }

    public int getRewardNum() {
        return rewardNum;
    }
    public void setRewardNum(int rewardNum) {
        if (this.rewardNum != rewardNum) {
            this.rewardNum = rewardNum;
            setOp(DataStatus.Update);
        }
    }

    public boolean getIsWin() {
        return isWin;
    }
    public void setIsWin(boolean isWin) {
        if (this.isWin != isWin) {
            this.isWin = isWin;
            setOp(DataStatus.Update);
        }
    }

    public long getRobId() {
        return robId;
    }
    public void setRobId(long robId) {
        if (this.robId != robId) {
            this.robId = robId;
            setOp(DataStatus.Update);
        }
    }

    public String getRobObjectStr() {
        return robObjectStr;
    }
    public void setRobObjectStr(String robObjectStr) {
        if (robObjectStr == null){
            return;
        }
        if (this.robObjectStr == null || !this.robObjectStr.equals(robObjectStr)) {
            this.robObjectStr = robObjectStr;
            setOp(DataStatus.Update);
        }
    }

    public long getRobValue() {
        return robValue;
    }
    public void setRobValue(long robValue) {
        if (this.robValue != robValue) {
            this.robValue = robValue;
            setOp(DataStatus.Update);
        }
    }

    public String getOccupyStr() {
        return occupyStr;
    }
    public void setOccupyStr(String occupyStr) {
        if (occupyStr == null){
            return;
        }
        if (this.occupyStr == null || !this.occupyStr.equals(occupyStr)) {
            this.occupyStr = occupyStr;
            setOp(DataStatus.Update);
        }
    }

    public int getSitReward() {
        return sitReward;
    }
    public void setSitReward(int sitReward) {
        if (this.sitReward != sitReward) {
            this.sitReward = sitReward;
            setOp(DataStatus.Update);
        }
    }

    public int getLogTime() {
        return logTime;
    }
    public void setLogTime(int logTime) {
        if (this.logTime != logTime) {
            this.logTime = logTime;
            setOp(DataStatus.Update);
        }
    }
}
